import axios from "axios"

document.querySelector('button').addEventListener("click", async function () {
    let {
        data: res
    } = await axios({
        method: "get",
        url: "http://www.liulongbin.top:3009/api/getbooks"
    })
    console.log(res);
})
//css
import "./css/index.css"
//less
import "./less/index.less"

import imgObj from "./assets/images/1.gif"
const img = document.createElement("img")
img.src = imgObj;
document.body.appendChild(img)
import "./assets/fonts/iconfont.css"
const span = document.createElement("span")
span.className = "iconfont icon-weixin"
document.body.appendChild(span)

const fn = () => {
    return "js语法转换"
}
console.log(fn);